package classesInterface;

import classesBancodeDados.FichaAdmissaoMedica;
import classesJpa.FichaAdmissaoMedicaJpaController;
import classesJpa.exceptions.NonexistentEntityException;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class TelaFichaAdmisMedic2 extends javax.swing.JFrame {

    /**
     * Creates new form AdmisMedic2
     */
    private TelaFichaAdmisMedic2() {
        initComponents();
        setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    }
    
    public static TelaFichaAdmisMedic2 getInstance(){
        if(uniqueInstance == null){
            System.out.println("Setando");
            uniqueInstance = new TelaFichaAdmisMedic2();
        }
        return uniqueInstance;
    }


    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jCheckBox34 = new javax.swing.JCheckBox();
        checkFebre = new javax.swing.JCheckBox();
        checkAnorexia = new javax.swing.JCheckBox();
        checkAstenia = new javax.swing.JCheckBox();
        jLabel25 = new javax.swing.JLabel();
        checkPerdaPeso = new javax.swing.JCheckBox();
        campoPerdaTempo = new javax.swing.JTextField();
        checkPrurido = new javax.swing.JCheckBox();
        checkSudorese = new javax.swing.JCheckBox();
        checkCalafrios = new javax.swing.JCheckBox();
        campoPerdaPeso = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        checkAlopecia = new javax.swing.JCheckBox();
        checkAdenomegalias = new javax.swing.JCheckBox();
        checkIctericia = new javax.swing.JCheckBox();
        checkOutrosGeral = new javax.swing.JCheckBox();
        jSeparator2 = new javax.swing.JSeparator();
        campoOutrosGeral = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        checkTonturas = new javax.swing.JCheckBox();
        jLabel6 = new javax.swing.JLabel();
        campoPele = new javax.swing.JTextField();
        jLabel26 = new javax.swing.JLabel();
        checkCefaleia = new javax.swing.JCheckBox();
        checkEspirros = new javax.swing.JCheckBox();
        checkRinorreia = new javax.swing.JCheckBox();
        checkObstrucaoNasal = new javax.swing.JCheckBox();
        checkEpistaxe = new javax.swing.JCheckBox();
        checkDorGarganta = new javax.swing.JCheckBox();
        checkBocio = new javax.swing.JCheckBox();
        checkRouquidao = new javax.swing.JCheckBox();
        checkDisfagia = new javax.swing.JCheckBox();
        jLabel1 = new javax.swing.JLabel();
        campoAudicao = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        campoVisao = new javax.swing.JTextField();
        jLabel27 = new javax.swing.JLabel();
        campoDorAReACV = new javax.swing.JTextField();
        checkDorAReACV = new javax.swing.JCheckBox();
        checkTosse = new javax.swing.JCheckBox();
        checkExpectoracao = new javax.swing.JCheckBox();
        checkHemoptise = new javax.swing.JCheckBox();
        checkDispneia = new javax.swing.JCheckBox();
        checkPalpitacoes = new javax.swing.JCheckBox();
        checkDesmaio = new javax.swing.JCheckBox();
        checkCianose = new javax.swing.JCheckBox();
        campoEdemaAReACV = new javax.swing.JTextField();
        checkEdemaAReACV = new javax.swing.JCheckBox();
        campoOutrosAReACV = new javax.swing.JTextField();
        checkOutrosAReACV = new javax.swing.JCheckBox();
        jLabel28 = new javax.swing.JLabel();
        checkDorABD = new javax.swing.JCheckBox();
        campoDorABD = new javax.swing.JTextField();
        checkPirose = new javax.swing.JCheckBox();
        checkSoluco = new javax.swing.JCheckBox();
        checkRegurgitacao = new javax.swing.JCheckBox();
        checkHematemese = new javax.swing.JCheckBox();
        checkNauseas = new javax.swing.JCheckBox();
        checkDispepsia = new javax.swing.JCheckBox();
        checkDiarreia = new javax.swing.JCheckBox();
        checkMelena = new javax.swing.JCheckBox();
        checkEnterorragia = new javax.swing.JCheckBox();
        checkConstipacao = new javax.swing.JCheckBox();
        checkAumentoVolume = new javax.swing.JCheckBox();
        jLabel29 = new javax.swing.JLabel();
        checkDisuria = new javax.swing.JCheckBox();
        checkIncontinencia = new javax.swing.JCheckBox();
        checkRetencao = new javax.swing.JCheckBox();
        checkPoliuria = new javax.swing.JCheckBox();
        checkOliguria = new javax.swing.JCheckBox();
        checkNocturia = new javax.swing.JCheckBox();
        checkHematuria = new javax.swing.JCheckBox();
        checkMauCheiro = new javax.swing.JCheckBox();
        campoOutrosAGU = new javax.swing.JTextField();
        checkOutrosAGU = new javax.swing.JCheckBox();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        checkDorSME = new javax.swing.JCheckBox();
        campoMotricidadeSensibilidade = new javax.swing.JTextField();
        checkRigidezPosRepouso = new javax.swing.JCheckBox();
        checkDeformidades = new javax.swing.JCheckBox();
        checkArtralgia = new javax.swing.JCheckBox();
        checkCalor = new javax.swing.JCheckBox();
        checkRubor = new javax.swing.JCheckBox();
        checkEdemaSME = new javax.swing.JCheckBox();
        checkCrepitacao = new javax.swing.JCheckBox();
        checkFraqueza = new javax.swing.JCheckBox();
        checkAtrofia = new javax.swing.JCheckBox();
        checkEspasmos = new javax.swing.JCheckBox();
        checkInsonia = new javax.swing.JCheckBox();
        checkSonolencia = new javax.swing.JCheckBox();
        checkConvulsoes = new javax.swing.JCheckBox();
        checkMotricidadeSensibilidade = new javax.swing.JCheckBox();
        checkAmnesia = new javax.swing.JCheckBox();
        campoDorSME = new javax.swing.JTextField();
        checkLibido = new javax.swing.JCheckBox();
        checkHumor = new javax.swing.JCheckBox();
        botaoCancelar = new javax.swing.JButton();
        botaoProximo = new javax.swing.JButton();
        botaoAnterior = new javax.swing.JButton();
        checkVomitos = new javax.swing.JCheckBox();
        botaoSalvar = new javax.swing.JButton();
        checkCorrimento = new javax.swing.JCheckBox();

        jCheckBox34.setText("Pirose");
        jCheckBox34.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCheckBox34ActionPerformed(evt);
            }
        });

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                formWindowClosing(evt);
            }
        });

        checkFebre.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkFebre.setText("Febre");
        checkFebre.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkFebreActionPerformed(evt);
            }
        });

        checkAnorexia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkAnorexia.setText("Anorexia");
        checkAnorexia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkAnorexiaActionPerformed(evt);
            }
        });

        checkAstenia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkAstenia.setText("Astenia");
        checkAstenia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkAsteniaActionPerformed(evt);
            }
        });

        jLabel25.setFont(new java.awt.Font("Andalus", 1, 14)); // NOI18N
        jLabel25.setText("Geral");

        checkPerdaPeso.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkPerdaPeso.setText("Perda de Peso:");
        checkPerdaPeso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkPerdaPesoActionPerformed(evt);
            }
        });

        campoPerdaTempo.setEnabled(false);

        checkPrurido.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkPrurido.setText("Prurido");

        checkSudorese.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkSudorese.setText("Sudorese");

        checkCalafrios.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkCalafrios.setText("Calafrios");

        campoPerdaPeso.setEnabled(false);

        jLabel5.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        jLabel5.setText("Kg em");

        checkAlopecia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkAlopecia.setText("Alopecia");

        checkAdenomegalias.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkAdenomegalias.setText("Adenomegalias");

        checkIctericia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkIctericia.setText("Icterícia");

        checkOutrosGeral.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkOutrosGeral.setText("Outros:");

        jLabel8.setFont(new java.awt.Font("Andalus", 1, 14)); // NOI18N
        jLabel8.setText("Interrogatório Sintomatológico");

        checkTonturas.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkTonturas.setText("Tonturas");

        jLabel6.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        jLabel6.setText("Pele:");

        jLabel26.setFont(new java.awt.Font("Andalus", 1, 14)); // NOI18N
        jLabel26.setText("Cabeça e Pescoço");

        checkCefaleia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkCefaleia.setText("Cefaleia");
        checkCefaleia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkCefaleiaActionPerformed(evt);
            }
        });

        checkEspirros.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkEspirros.setText("Espirros");
        checkEspirros.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkEspirrosActionPerformed(evt);
            }
        });

        checkRinorreia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkRinorreia.setText("Rinorreia");
        checkRinorreia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkRinorreiaActionPerformed(evt);
            }
        });

        checkObstrucaoNasal.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkObstrucaoNasal.setText("Obstrução Nasal");
        checkObstrucaoNasal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkObstrucaoNasalActionPerformed(evt);
            }
        });

        checkEpistaxe.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkEpistaxe.setText("Epistaxe");
        checkEpistaxe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkEpistaxeActionPerformed(evt);
            }
        });

        checkDorGarganta.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkDorGarganta.setText("Dor de Garganta");
        checkDorGarganta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkDorGargantaActionPerformed(evt);
            }
        });

        checkBocio.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkBocio.setText("Bócio");
        checkBocio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkBocioActionPerformed(evt);
            }
        });

        checkRouquidao.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkRouquidao.setText("Rouquidão");
        checkRouquidao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkRouquidaoActionPerformed(evt);
            }
        });

        checkDisfagia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkDisfagia.setText("Disfagia");
        checkDisfagia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkDisfagiaActionPerformed(evt);
            }
        });

        jLabel1.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        jLabel1.setText("Audição:");

        jLabel2.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        jLabel2.setText("Visão:");

        jLabel27.setFont(new java.awt.Font("Andalus", 1, 14)); // NOI18N
        jLabel27.setText("AR e ACV");

        checkDorAReACV.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkDorAReACV.setText("Dor:");

        checkTosse.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkTosse.setText("Tosse");
        checkTosse.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkTosseActionPerformed(evt);
            }
        });

        checkExpectoracao.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkExpectoracao.setText("Expectoração");
        checkExpectoracao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkExpectoracaoActionPerformed(evt);
            }
        });

        checkHemoptise.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkHemoptise.setText("Hemoptise");
        checkHemoptise.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkHemoptiseActionPerformed(evt);
            }
        });

        checkDispneia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkDispneia.setText("Dispneia");
        checkDispneia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkDispneiaActionPerformed(evt);
            }
        });

        checkPalpitacoes.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkPalpitacoes.setText("Palpitações");
        checkPalpitacoes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkPalpitacoesActionPerformed(evt);
            }
        });

        checkDesmaio.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkDesmaio.setText("Desmaio");
        checkDesmaio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkDesmaioActionPerformed(evt);
            }
        });

        checkCianose.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkCianose.setText("Cianose");
        checkCianose.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkCianoseActionPerformed(evt);
            }
        });

        checkEdemaAReACV.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkEdemaAReACV.setText("Edema:");

        checkOutrosAReACV.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkOutrosAReACV.setText("Outros:");

        jLabel28.setFont(new java.awt.Font("Andalus", 1, 14)); // NOI18N
        jLabel28.setText("ABD");

        checkDorABD.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkDorABD.setText("Dor:");

        checkPirose.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkPirose.setText("Pirose");
        checkPirose.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkPiroseActionPerformed(evt);
            }
        });

        checkSoluco.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkSoluco.setText("Soluço");
        checkSoluco.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkSolucoActionPerformed(evt);
            }
        });

        checkRegurgitacao.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkRegurgitacao.setText("Regurgitação");
        checkRegurgitacao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkRegurgitacaoActionPerformed(evt);
            }
        });

        checkHematemese.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkHematemese.setText("Hematêmese");
        checkHematemese.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkHematemeseActionPerformed(evt);
            }
        });

        checkNauseas.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkNauseas.setText("Náuseas");
        checkNauseas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkNauseasActionPerformed(evt);
            }
        });

        checkDispepsia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkDispepsia.setText("Dispepsia");
        checkDispepsia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkDispepsiaActionPerformed(evt);
            }
        });

        checkDiarreia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkDiarreia.setText("Diarreia");
        checkDiarreia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkDiarreiaActionPerformed(evt);
            }
        });

        checkMelena.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkMelena.setText("Melena");
        checkMelena.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkMelenaActionPerformed(evt);
            }
        });

        checkEnterorragia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkEnterorragia.setText("Enterorragia");
        checkEnterorragia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkEnterorragiaActionPerformed(evt);
            }
        });

        checkConstipacao.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkConstipacao.setText("Constipação");
        checkConstipacao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkConstipacaoActionPerformed(evt);
            }
        });

        checkAumentoVolume.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkAumentoVolume.setText("Aumento de Volume");
        checkAumentoVolume.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkAumentoVolumeActionPerformed(evt);
            }
        });

        jLabel29.setFont(new java.awt.Font("Andalus", 1, 14)); // NOI18N
        jLabel29.setText("AGU");

        checkDisuria.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkDisuria.setText("Disúria");

        checkIncontinencia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkIncontinencia.setText("Incontinência");

        checkRetencao.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkRetencao.setText("Retenção");

        checkPoliuria.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkPoliuria.setText("Poliúria");

        checkOliguria.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkOliguria.setText("Oligúria");

        checkNocturia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkNocturia.setText("Noctúria");

        checkHematuria.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkHematuria.setText("Hematúria");

        checkMauCheiro.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkMauCheiro.setText("Mau Cheiro");

        checkOutrosAGU.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkOutrosAGU.setText("Outros:");

        jLabel30.setFont(new java.awt.Font("Andalus", 1, 14)); // NOI18N
        jLabel30.setText("SME");

        jLabel31.setFont(new java.awt.Font("Andalus", 1, 14)); // NOI18N
        jLabel31.setText("SN e PSQ");

        checkDorSME.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkDorSME.setText("Dor:");

        checkRigidezPosRepouso.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkRigidezPosRepouso.setText("Rigidez pós-repouso");

        checkDeformidades.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkDeformidades.setText("Deformidades");

        checkArtralgia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkArtralgia.setText("Artralgia");

        checkCalor.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkCalor.setText("Calor");

        checkRubor.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkRubor.setText("Rubor");

        checkEdemaSME.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkEdemaSME.setText("Edema");

        checkCrepitacao.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkCrepitacao.setText("Crepitação");

        checkFraqueza.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkFraqueza.setText("Fraqueza");

        checkAtrofia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkAtrofia.setText("Atrofia");

        checkEspasmos.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkEspasmos.setText("Espasmos");

        checkInsonia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkInsonia.setText("Insônia");

        checkSonolencia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkSonolencia.setText("Sonolência");

        checkConvulsoes.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkConvulsoes.setText("Convulsões");

        checkMotricidadeSensibilidade.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkMotricidadeSensibilidade.setText("Motricidade e Sensibilidade");

        checkAmnesia.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkAmnesia.setText("Amnésia");

        checkLibido.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkLibido.setText("Libido");

        checkHumor.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkHumor.setText("Humor");

        botaoCancelar.setText("Cancelar");
        botaoCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoCancelarActionPerformed(evt);
            }
        });

        botaoProximo.setText("Próximo >");
        botaoProximo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoProximoActionPerformed(evt);
            }
        });

        botaoAnterior.setText("< Anterior");
        botaoAnterior.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoAnteriorActionPerformed(evt);
            }
        });

        checkVomitos.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkVomitos.setText("Vômitos");
        checkVomitos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkVomitosActionPerformed(evt);
            }
        });

        botaoSalvar.setText("Salvar");
        botaoSalvar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                botaoSalvarActionPerformed(evt);
            }
        });

        checkCorrimento.setFont(new java.awt.Font("Calibri Light", 1, 11)); // NOI18N
        checkCorrimento.setText("Corrimento");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSeparator2)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(checkDiarreia)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(checkEnterorragia)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkMelena)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkConstipacao)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkAumentoVolume))
                            .addComponent(jLabel25)
                            .addComponent(jLabel26)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(jLabel1)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoAudicao))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(checkCefaleia)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkEspirros)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkRinorreia)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkObstrucaoNasal)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(checkEpistaxe)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkDorGarganta)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkBocio)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkRouquidao)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkDisfagia))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jLabel2)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoVisao))))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(checkIctericia)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkTonturas)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkAdenomegalias)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkOutrosGeral)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(campoOutrosGeral))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(checkFebre)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkAstenia)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(checkAnorexia)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkPerdaPeso)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoPerdaPeso, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel5)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoPerdaTempo, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(checkPrurido)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(checkSudorese)
                                        .addGap(10, 10, 10)
                                        .addComponent(checkCalafrios)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkAlopecia))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jLabel6)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(campoPele))))
                            .addComponent(jLabel27)
                            .addComponent(jLabel28)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(checkDorABD)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(campoDorABD, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkPirose)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkSoluco)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkRegurgitacao)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkHematemese)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkNauseas)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(checkVomitos)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(checkDispepsia))
                            .addComponent(jLabel29)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(checkOutrosAGU)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(campoOutrosAGU))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(checkDisuria)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkIncontinencia)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkRetencao)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkPoliuria)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkOliguria)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkNocturia)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkHematuria)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(checkMauCheiro)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(checkCorrimento))
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(checkEdemaAReACV)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(campoEdemaAReACV, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(checkOutrosAReACV)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(campoOutrosAReACV))
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                    .addComponent(checkDorAReACV)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(campoDorAReACV, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(checkTosse)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(checkExpectoracao)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(checkHemoptise)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(checkDispneia)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(checkPalpitacoes)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(checkDesmaio)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(checkCianose)))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(checkInsonia)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkSonolencia)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkConvulsoes)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkMotricidadeSensibilidade)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(campoMotricidadeSensibilidade, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkAmnesia)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkLibido)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkHumor))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(checkFraqueza)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkAtrofia)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkEspasmos))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(checkDorSME)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(campoDorSME, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(10, 10, 10)
                                .addComponent(checkRigidezPosRepouso)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkDeformidades)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkArtralgia)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkCalor)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkRubor)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkEdemaSME)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(checkCrepitacao))
                            .addComponent(jLabel30)
                            .addComponent(jLabel31))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jLabel8))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(botaoSalvar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(botaoAnterior)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(botaoCancelar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(botaoProximo)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addComponent(jLabel25)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkFebre)
                    .addComponent(checkAstenia)
                    .addComponent(checkAnorexia)
                    .addComponent(checkPerdaPeso)
                    .addComponent(campoPerdaPeso, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5)
                    .addComponent(campoPerdaTempo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(checkPrurido)
                    .addComponent(checkSudorese)
                    .addComponent(checkCalafrios)
                    .addComponent(checkAlopecia))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkIctericia)
                    .addComponent(checkTonturas)
                    .addComponent(checkAdenomegalias)
                    .addComponent(checkOutrosGeral)
                    .addComponent(campoOutrosGeral, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel6)
                    .addComponent(campoPele, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel26)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkCefaleia)
                    .addComponent(checkEspirros)
                    .addComponent(checkRinorreia)
                    .addComponent(checkObstrucaoNasal)
                    .addComponent(checkEpistaxe)
                    .addComponent(checkDorGarganta)
                    .addComponent(checkBocio)
                    .addComponent(checkRouquidao)
                    .addComponent(checkDisfagia))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(campoAudicao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2)
                    .addComponent(campoVisao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel27)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkDorAReACV)
                    .addComponent(campoDorAReACV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(checkTosse)
                    .addComponent(checkExpectoracao)
                    .addComponent(checkHemoptise)
                    .addComponent(checkDispneia)
                    .addComponent(checkPalpitacoes)
                    .addComponent(checkDesmaio)
                    .addComponent(checkCianose))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkEdemaAReACV)
                    .addComponent(campoEdemaAReACV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(checkOutrosAReACV)
                    .addComponent(campoOutrosAReACV, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel28)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkDorABD)
                    .addComponent(campoDorABD, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(checkPirose)
                    .addComponent(checkSoluco)
                    .addComponent(checkRegurgitacao)
                    .addComponent(checkHematemese)
                    .addComponent(checkNauseas)
                    .addComponent(checkVomitos)
                    .addComponent(checkDispepsia))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkEnterorragia)
                    .addComponent(checkMelena)
                    .addComponent(checkConstipacao)
                    .addComponent(checkAumentoVolume)
                    .addComponent(checkDiarreia))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel29)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkDisuria)
                    .addComponent(checkIncontinencia)
                    .addComponent(checkRetencao)
                    .addComponent(checkPoliuria)
                    .addComponent(checkOliguria)
                    .addComponent(checkNocturia)
                    .addComponent(checkHematuria)
                    .addComponent(checkMauCheiro)
                    .addComponent(checkCorrimento))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkOutrosAGU)
                    .addComponent(campoOutrosAGU, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(8, 8, 8)
                .addComponent(jLabel30)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkDorSME)
                    .addComponent(checkRigidezPosRepouso)
                    .addComponent(checkDeformidades)
                    .addComponent(checkArtralgia)
                    .addComponent(checkCalor)
                    .addComponent(checkRubor)
                    .addComponent(checkEdemaSME)
                    .addComponent(checkCrepitacao)
                    .addComponent(campoDorSME, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkFraqueza)
                    .addComponent(checkAtrofia)
                    .addComponent(checkEspasmos))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel31)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(checkInsonia)
                    .addComponent(checkSonolencia)
                    .addComponent(checkConvulsoes)
                    .addComponent(checkMotricidadeSensibilidade)
                    .addComponent(campoMotricidadeSensibilidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(checkAmnesia)
                    .addComponent(checkLibido)
                    .addComponent(checkHumor))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(botaoProximo)
                    .addComponent(botaoCancelar)
                    .addComponent(botaoAnterior)
                    .addComponent(botaoSalvar))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void checkFebreActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkFebreActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkFebreActionPerformed

    private void checkAnorexiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkAnorexiaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkAnorexiaActionPerformed

    private void checkAsteniaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkAsteniaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkAsteniaActionPerformed

    private void checkPerdaPesoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkPerdaPesoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkPerdaPesoActionPerformed

    private void checkCefaleiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkCefaleiaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkCefaleiaActionPerformed

    private void checkEspirrosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkEspirrosActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkEspirrosActionPerformed

    private void checkRinorreiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkRinorreiaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkRinorreiaActionPerformed

    private void checkObstrucaoNasalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkObstrucaoNasalActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkObstrucaoNasalActionPerformed

    private void checkEpistaxeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkEpistaxeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkEpistaxeActionPerformed

    private void checkDorGargantaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkDorGargantaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkDorGargantaActionPerformed

    private void checkBocioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkBocioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkBocioActionPerformed

    private void checkRouquidaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkRouquidaoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkRouquidaoActionPerformed

    private void checkDisfagiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkDisfagiaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkDisfagiaActionPerformed

    private void checkTosseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkTosseActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkTosseActionPerformed

    private void checkExpectoracaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkExpectoracaoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkExpectoracaoActionPerformed

    private void checkHemoptiseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkHemoptiseActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkHemoptiseActionPerformed

    private void checkDispneiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkDispneiaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkDispneiaActionPerformed

    private void checkPalpitacoesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkPalpitacoesActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkPalpitacoesActionPerformed

    private void checkDesmaioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkDesmaioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkDesmaioActionPerformed

    private void checkCianoseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkCianoseActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkCianoseActionPerformed

    private void checkPiroseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkPiroseActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkPiroseActionPerformed

    private void jCheckBox34ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCheckBox34ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jCheckBox34ActionPerformed

    private void checkSolucoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkSolucoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkSolucoActionPerformed

    private void checkRegurgitacaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkRegurgitacaoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkRegurgitacaoActionPerformed

    private void checkHematemeseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkHematemeseActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkHematemeseActionPerformed

    private void checkNauseasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkNauseasActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkNauseasActionPerformed

    private void checkDispepsiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkDispepsiaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkDispepsiaActionPerformed

    private void checkDiarreiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkDiarreiaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkDiarreiaActionPerformed

    private void checkMelenaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkMelenaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkMelenaActionPerformed

    private void checkEnterorragiaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkEnterorragiaActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkEnterorragiaActionPerformed

    private void checkConstipacaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkConstipacaoActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkConstipacaoActionPerformed

    private void checkAumentoVolumeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkAumentoVolumeActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkAumentoVolumeActionPerformed

    private void botaoCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoCancelarActionPerformed
        TelaFichaAdmisMedic1.getInstance().limpaCampos();
        TelaFichaAdmisMedic2.getInstance().limpaCampos();
        TelaFichaAdmisMedic3.getInstance().limpaCampos();
        TelaFichaAdmisMedic4.getInstance().limpaCampos();
        this.setVisible(false);
    }//GEN-LAST:event_botaoCancelarActionPerformed

    private void botaoAnteriorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoAnteriorActionPerformed
        this.setVisible(false);
        TelaFichaAdmisMedic1.getInstance().setVisible(true);
    }//GEN-LAST:event_botaoAnteriorActionPerformed

    private void botaoProximoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoProximoActionPerformed
        TelaFichaAdmisMedic3.getInstance().setFicha(ficha);
        TelaFichaAdmisMedic3.getInstance().preencheCampos(ficha);
        TelaFichaAdmisMedic3.getInstance().turnEditable(editable);
        this.setVisible(false);
        TelaFichaAdmisMedic3.getInstance().setVisible(true);
    }//GEN-LAST:event_botaoProximoActionPerformed

    private void checkVomitosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkVomitosActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_checkVomitosActionPerformed

    private void botaoSalvarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_botaoSalvarActionPerformed
        FichaAdmissaoMedicaJpaController jpa = new FichaAdmissaoMedicaJpaController();
        ficha.getInterrogSintomABD().setAumentoVolume(checkAumentoVolume.isSelected());
        ficha.getInterrogSintomABD().setConstipacao(checkConstipacao.isSelected());
        ficha.getInterrogSintomABD().setDiarreia(checkDiarreia.isSelected());
        ficha.getInterrogSintomABD().setDispepsia(checkDispepsia.isSelected());
        ficha.getInterrogSintomABD().setDor(campoDorABD.getText());
        ficha.getInterrogSintomABD().setEnterorragia(checkEnterorragia.isSelected());
        ficha.getInterrogSintomABD().setHematemese(checkHematemese.isSelected());
        ficha.getInterrogSintomABD().setMelena((checkMelena.isSelected()));
        ficha.getInterrogSintomABD().setNauseas(checkNauseas.isSelected());
        ficha.getInterrogSintomABD().setPirose(checkPirose.isSelected());
        ficha.getInterrogSintomABD().setRegurgitacao(checkRegurgitacao.isSelected());
        ficha.getInterrogSintomABD().setSoluco(checkSoluco.isSelected());
        ficha.getInterrogSintomABD().setVomitos(checkVomitos.isSelected());
        ficha.getInterrogSintomAGU().setCorrimento(checkCorrimento.isSelected());
        ficha.getInterrogSintomAGU().setDisuria(checkDisuria.isSelected());
        ficha.getInterrogSintomAGU().setHematuria(checkHematuria.isSelected());
        ficha.getInterrogSintomAGU().setIncontinencia(checkIncontinencia.isSelected());
        ficha.getInterrogSintomAGU().setMauCheiro(checkMauCheiro.isSelected());
        ficha.getInterrogSintomAGU().setNocturia(checkNocturia.isSelected());
        ficha.getInterrogSintomAGU().setOliguria(checkOliguria.isSelected());
        ficha.getInterrogSintomAGU().setOutros(campoOutrosAGU.getText());
        ficha.getInterrogSintomAGU().setPoliuria(checkPoliuria.isSelected());
        ficha.getInterrogSintomAGU().setRetencao(checkRetencao.isSelected());
        ficha.getInterrogSintomARACV().setCianose(checkCianose.isSelected());
        ficha.getInterrogSintomARACV().setDesmaio(checkDesmaio.isSelected());
        ficha.getInterrogSintomARACV().setDispneia(checkDispneia.isSelected());
        ficha.getInterrogSintomARACV().setDor(campoDorAReACV.getText());
        ficha.getInterrogSintomARACV().setEdema(campoEdemaAReACV.getText());
        ficha.getInterrogSintomARACV().setExpectoracao(checkExpectoracao.isSelected());
        ficha.getInterrogSintomARACV().setHemoptise(checkHemoptise.isSelected());
        ficha.getInterrogSintomARACV().setOutros(campoOutrosAReACV.getText());
        ficha.getInterrogSintomCabecaPescoco().setAudicao(campoAudicao.getText());
        ficha.getInterrogSintomCabecaPescoco().setBocio(checkBocio.isSelected());
        ficha.getInterrogSintomCabecaPescoco().setCefaleia(checkCefaleia.isSelected());
        ficha.getInterrogSintomCabecaPescoco().setDisfagia(checkDisfagia.isSelected());
        ficha.getInterrogSintomCabecaPescoco().setDorGarg(checkDorGarganta.isSelected());
        ficha.getInterrogSintomCabecaPescoco().setEpistaxe(checkEpistaxe.isSelected());
        ficha.getInterrogSintomCabecaPescoco().setEspirros(checkEspirros.isSelected());
        ficha.getInterrogSintomCabecaPescoco().setObsNasal(checkObstrucaoNasal.isSelected());
        ficha.getInterrogSintomCabecaPescoco().setRinorreia(checkRinorreia.isSelected());
        ficha.getInterrogSintomCabecaPescoco().setRouquidao(checkRouquidao.isSelected());
        ficha.getInterrogSintomCabecaPescoco().setVisao(campoVisao.getText());
        ficha.getInterrogSintomGeral().setAdenomegalias(checkAdenomegalias.isSelected());
        ficha.getInterrogSintomGeral().setAlopecia(checkAlopecia.isSelected());
        ficha.getInterrogSintomGeral().setAnorexia(checkAnorexia.isSelected());
        ficha.getInterrogSintomGeral().setAstenia(checkAstenia.isSelected());
        ficha.getInterrogSintomGeral().setCalafrios(checkCalafrios.isSelected());
        ficha.getInterrogSintomGeral().setEmQtoTempo(Double.parseDouble(campoPerdaTempo.getText()));
        ficha.getInterrogSintomGeral().setFebre(checkFebre.isSelected());
        ficha.getInterrogSintomGeral().setIctericia(checkIctericia.isSelected());
        ficha.getInterrogSintomGeral().setOutros(campoOutrosGeral.getText());
        ficha.getInterrogSintomGeral().setPele(campoPele.getText());
        ficha.getInterrogSintomGeral().setPesoPerdido(Double.parseDouble(campoPerdaPeso.getText()));
        ficha.getInterrogSintomGeral().setPrurido(checkPrurido.isSelected());
        ficha.getInterrogSintomGeral().setSudorese(checkSudorese.isSelected());
        ficha.getInterrogSintomGeral().setTontura(checkTonturas.isSelected());
        ficha.getInterrogSintomSME().setArtralgia(checkArtralgia.isSelected());
        ficha.getInterrogSintomSME().setAtrofia(checkAtrofia.isSelected());
        ficha.getInterrogSintomSME().setCalor(checkCalor.isSelected());
        ficha.getInterrogSintomSME().setCrepitacao(checkCrepitacao.isSelected());
        ficha.getInterrogSintomSME().setDeformidades(checkDeformidades.isSelected());
        ficha.getInterrogSintomSME().setDor(campoDorSME.getText());
        ficha.getInterrogSintomSME().setEdema(checkEdemaSME.isSelected());
        ficha.getInterrogSintomSME().setEspasmos(checkEspasmos.isSelected());
        ficha.getInterrogSintomSME().setFraqueza(checkFraqueza.isSelected());
        ficha.getInterrogSintomSME().setRigidezPosRep(checkRigidezPosRepouso.isSelected());
        ficha.getInterrogSintomSME().setRubor(checkRubor.isSelected());
        ficha.getInterrogSintomSNSPQ().setAmnesia(checkAmnesia.isSelected());
        ficha.getInterrogSintomSNSPQ().setConvulsoes(checkConvulsoes.isSelected());
        ficha.getInterrogSintomSNSPQ().setHumor(checkHumor.isSelected());
        ficha.getInterrogSintomSNSPQ().setInsonia(checkInsonia.isSelected());
        ficha.getInterrogSintomSNSPQ().setLibido(checkLibido.isSelected());
        ficha.getInterrogSintomSNSPQ().setMotricSensib(campoMotricidadeSensibilidade.getText());
        ficha.getInterrogSintomSNSPQ().setSonolencia(checkSonolencia.isSelected());
        try {
            jpa.edit(ficha);
        } catch (NonexistentEntityException ex) {
            JOptionPane.showMessageDialog(null, "Ficha não encontrada.");
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(null, "Erro na comunicação com o Banco de Dados.");
        }
    }//GEN-LAST:event_botaoSalvarActionPerformed

    private void formWindowClosing(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowClosing
        TelaFichaAdmisMedic1.getInstance().limpaCampos();
        TelaFichaAdmisMedic2.getInstance().limpaCampos();
        TelaFichaAdmisMedic3.getInstance().limpaCampos();
        TelaFichaAdmisMedic4.getInstance().limpaCampos();
        setVisible(false);
    }//GEN-LAST:event_formWindowClosing

    public void turnEditable(boolean editable){
        this.editable = editable;
        botaoSalvar.setEnabled(editable);
        checkFebre.setEnabled(editable);
        checkAstenia.setEnabled(editable);
        checkAnorexia.setEnabled(editable);
        campoPerdaPeso.setEditable(editable);
        campoPerdaTempo.setEditable(editable);
        checkPrurido.setEnabled(editable);
        checkSudorese.setEnabled(editable);
        checkCalafrios.setEnabled(editable);
        checkAlopecia.setEnabled(editable);
        checkIctericia.setEnabled(editable);
        checkTonturas.setEnabled(editable);
        checkAdenomegalias.setEnabled(editable);
        checkOutrosGeral.setEnabled(editable);
        campoOutrosGeral.setEditable(editable);
        campoPele.setEditable(editable);
        checkCefaleia.setEnabled(editable);
        checkEspirros.setEnabled(editable);
        checkRinorreia.setEnabled(editable);
        checkObstrucaoNasal.setEnabled(editable);
        checkEpistaxe.setEnabled(editable);
        checkDorGarganta.setEnabled(editable);
        checkBocio.setEnabled(editable);
        checkRouquidao.setEnabled(editable);
        checkDisfagia.setEnabled(editable);
        campoAudicao.setEditable(editable);
        campoVisao.setEditable(editable);
        checkDorAReACV.setEnabled(editable);
        campoDorAReACV.setEditable(editable);
        checkTosse.setEnabled(editable);
        checkExpectoracao.setEnabled(editable);
        checkHemoptise.setEnabled(editable);
        checkDispneia.setEnabled(editable);
        checkPalpitacoes.setEnabled(editable);
        checkDesmaio.setEnabled(editable);
        checkCianose.setEnabled(editable);
        checkEdemaAReACV.setEnabled(editable);
        campoEdemaAReACV.setEditable(editable);
        checkOutrosAReACV.setEnabled(editable);
        campoOutrosAReACV.setEditable(editable);
        checkDorABD.setEnabled(editable);
        campoDorABD.setEditable(editable);
        checkPirose.setEnabled(editable);
        checkSoluco.setEnabled(editable);
        checkRegurgitacao.setEnabled(editable);
        checkNauseas.setEnabled(editable);
        checkVomitos.setEnabled(editable);
        checkDispepsia.setEnabled(editable);
        checkDiarreia.setEnabled(editable);
        checkEnterorragia.setEnabled(editable);
        checkMelena.setEnabled(editable);
        checkConstipacao.setEnabled(editable);
        checkAumentoVolume.setEnabled(editable);
        checkDisuria.setEnabled(editable);
        checkIncontinencia.setEnabled(editable);
        checkRetencao.setEnabled(editable);
        checkPoliuria.setEnabled(editable);
        checkOliguria.setEnabled(editable);
        checkNocturia.setEnabled(editable);
        checkHematuria.setEnabled(editable);
        checkMauCheiro.setEnabled(editable);
        checkCorrimento.setEnabled(editable);
        checkOutrosAGU.setEnabled(editable);
        campoOutrosAGU.setEditable(editable);
        checkDorSME.setEnabled(editable);
        campoDorSME.setEditable(editable);
        checkRigidezPosRepouso.setEnabled(editable);
        checkDeformidades.setEnabled(editable);
        checkArtralgia.setEnabled(editable);
        checkCalor.setEnabled(editable);
        checkRubor.setEnabled(editable);
        checkEdemaAReACV.setEnabled(editable);
        checkCrepitacao.setEnabled(editable);
        checkFraqueza.setEnabled(editable);
        checkAtrofia.setEnabled(editable);
        checkEspasmos.setEnabled(editable);
        checkInsonia.setEnabled(editable);
        checkSonolencia.setEnabled(editable);
        checkConvulsoes.setEnabled(editable);
        checkMotricidadeSensibilidade.setEnabled(editable);
        campoMotricidadeSensibilidade.setEditable(editable);
        checkAmnesia.setEnabled(editable);
        checkLibido.setEnabled(editable);
        checkHumor.setEnabled(editable);
    }
    
    public void limpaCampos(){
        campoAudicao.setText("");
        campoDorABD.setText("");
        campoDorSME.setText("");
        campoEdemaAReACV.setText("");
        campoMotricidadeSensibilidade.setText("");
        campoOutrosGeral.setText("");
        campoOutrosAGU.setText("");
        campoOutrosAReACV.setText("");
        campoPele.setText("");
        campoPerdaPeso.setText("");
        campoPerdaTempo.setText("");
        checkAdenomegalias.setSelected(false);
        checkAlopecia.setSelected(false);
        checkAmnesia.setSelected(false);
        checkAnorexia.setSelected(false);
        checkArtralgia.setSelected(false);
        checkAumentoVolume.setSelected(false);
        checkBocio.setSelected(false);
        checkAtrofia.setSelected(false);
        checkCalafrios.setSelected(false);
        checkCalor.setSelected(false);
        checkCefaleia.setSelected(false);
        checkCianose.setSelected(false);
        checkConstipacao.setSelected(false);
        checkConvulsoes.setSelected(false);
        checkCorrimento.setSelected(false);
        checkCrepitacao.setSelected(false);
        checkDeformidades.setSelected(false);
        checkDesmaio.setSelected(false);
        checkDisfagia.setSelected(false);
        checkDispepsia.setSelected(false);
        checkDispneia.setSelected(false);
        checkDisuria.setSelected(false);
        campoDorAReACV.setText("");
        checkDorABD.setSelected(false);
        checkDorAReACV.setSelected(false);
        checkDorGarganta.setSelected(false);
        checkDorSME.setSelected(false);
        checkEdemaAReACV.setSelected(false);
        checkEdemaSME.setSelected(false);
        checkEnterorragia.setSelected(false);
        checkEpistaxe.setSelected(false);
        checkEspasmos.setSelected(false);
        checkEspirros.setSelected(false);
        checkExpectoracao.setSelected(false);
        checkFebre.setSelected(false);
        checkFraqueza.setSelected(false);
        checkHematemese.setSelected(false);
        checkHematuria.setSelected(false);
        checkHemoptise.setSelected(false);
        checkHumor.setSelected(false);
        checkIctericia.setSelected(false);
        checkIncontinencia.setSelected(false);
        checkInsonia.setSelected(false);
        checkSoluco.setSelected(false);
        checkSudorese.setSelected(false);
        checkSonolencia.setSelected(false);
        checkRegurgitacao.setSelected(false);
        checkRetencao.setSelected(false);
        checkRigidezPosRepouso.setSelected(false);
        checkRinorreia.setSelected(false);
        checkRouquidao.setSelected(false);
        checkMauCheiro.setSelected(false);
        checkMotricidadeSensibilidade.setSelected(false);
        checkMelena.setSelected(false);
        checkNocturia.setSelected(false);
        checkNauseas.setSelected(false);
        checkObstrucaoNasal.setSelected(false);
        checkOliguria.setSelected(false);
        checkOutrosAReACV.setSelected(false);
        checkOutrosGeral.setSelected(false);
        checkOutrosAGU.setSelected(false);
        checkTonturas.setSelected(false);
        checkTosse.setSelected(false);
        checkPalpitacoes.setSelected(false);
        checkPerdaPeso.setSelected(false);
        checkPirose.setSelected(false);
        checkPoliuria.setSelected(false);
        checkPrurido.setSelected(false);
        checkVomitos.setSelected(false);
    }

    public void preencheCampos(FichaAdmissaoMedica ficha){
        campoAudicao.setText(ficha.getInterrogSintomCabecaPescoco().getAudicao());
        campoDorABD.setText(ficha.getInterrogSintomABD().getDor());
        campoDorAReACV.setText(ficha.getInterrogSintomARACV().getDor());
        campoDorSME.setText(ficha.getInterrogSintomSME().getDor());
        campoEdemaAReACV.setText(ficha.getInterrogSintomARACV().getEdema());
        campoMotricidadeSensibilidade.setText(ficha.getInterrogSintomSNSPQ().getMotricSensib());
        campoOutrosGeral.setText(ficha.getInterrogSintomGeral().getOutros());
        campoOutrosAGU.setText(ficha.getInterrogSintomAGU().getOutros());
        campoOutrosAReACV.setText(ficha.getInterrogSintomARACV().getOutros());
        campoPele.setText(ficha.getInterrogSintomGeral().getPele());
        campoPerdaPeso.setText(ficha.getInterrogSintomGeral().getPesoPerdido() + "");
        campoPerdaTempo.setText(ficha.getInterrogSintomGeral().getEmQtoTempo() + "");
        checkAdenomegalias.setSelected(ficha.getInterrogSintomGeral().isAdenomegalias());
        checkAlopecia.setSelected(ficha.getInterrogSintomGeral().isAlopecia());
        checkAmnesia.setSelected(ficha.getInterrogSintomSNSPQ().isAmnesia());
        checkAnorexia.setSelected(ficha.getInterrogSintomGeral().isAnorexia());
        checkArtralgia.setSelected(ficha.getInterrogSintomSME().isArtralgia());
        checkAumentoVolume.setSelected(ficha.getInterrogSintomABD().isAumentoVolume());
        checkBocio.setSelected(ficha.getInterrogSintomCabecaPescoco().isBocio());
        checkAtrofia.setSelected(ficha.getInterrogSintomSME().isAtrofia());
        checkCalafrios.setSelected(ficha.getInterrogSintomGeral().isCalafrios());
        checkCalor.setSelected(ficha.getInterrogSintomSME().isCalor());
        checkCefaleia.setSelected(ficha.getInterrogSintomCabecaPescoco().isCefaleia());
        checkCianose.setSelected(ficha.getInterrogSintomARACV().isCianose());
        checkConstipacao.setSelected(ficha.getInterrogSintomABD().isConstipacao());
        checkConvulsoes.setSelected(ficha.getInterrogSintomSNSPQ().isConvulsoes());
        checkCorrimento.setSelected(ficha.getInterrogSintomAGU().isCorrimento());
        checkCrepitacao.setSelected(ficha.getInterrogSintomSME().isCrepitacao());
        checkDeformidades.setSelected(ficha.getInterrogSintomSME().isDeformidades());
        checkDesmaio.setSelected(ficha.getInterrogSintomARACV().isDesmaio());
        checkDisfagia.setSelected(ficha.getInterrogSintomCabecaPescoco().isDisfagia());
        checkDispepsia.setSelected(ficha.getInterrogSintomABD().isDispepsia());
        checkDispneia.setSelected(ficha.getInterrogSintomARACV().isDispneia());
        checkDisuria.setSelected(ficha.getInterrogSintomAGU().isDisuria());
        checkDorABD.setSelected(!ficha.getInterrogSintomABD().getDor().equals(""));
        checkDorAReACV.setSelected(!ficha.getInterrogSintomARACV().getDor().equals(""));
        checkDorGarganta.setSelected(ficha.getInterrogSintomCabecaPescoco().isDorGarg());
        checkDorSME.setSelected(!ficha.getInterrogSintomSME().getDor().equals(""));
        checkEdemaAReACV.setSelected(!ficha.getInterrogSintomARACV().getEdema().equals(""));
        checkEdemaSME.setSelected(ficha.getInterrogSintomSME().isEdema());
        checkEnterorragia.setSelected(ficha.getInterrogSintomABD().isEnterorragia());
        checkEpistaxe.setSelected(ficha.getInterrogSintomCabecaPescoco().isEpistaxe());
        checkEspasmos.setSelected(ficha.getInterrogSintomSME().isEspasmos());
        checkEspirros.setSelected(ficha.getInterrogSintomCabecaPescoco().isEspirros());
        checkExpectoracao.setSelected(ficha.getInterrogSintomARACV().isExpectoracao());
        checkFebre.setSelected(ficha.getInterrogSintomGeral().isFebre());
        checkFraqueza.setSelected(ficha.getInterrogSintomSME().isFraqueza());
        checkHematemese.setSelected(ficha.getInterrogSintomABD().isHematemese());
        checkHematuria.setSelected(ficha.getInterrogSintomAGU().isHematuria());
        checkHemoptise.setSelected(ficha.getInterrogSintomARACV().isHemoptise());
        checkHumor.setSelected(ficha.getInterrogSintomSNSPQ().isHumor());
        checkIctericia.setSelected(ficha.getInterrogSintomGeral().isIctericia());
        checkIncontinencia.setSelected(ficha.getInterrogSintomAGU().isIncontinencia());
        checkInsonia.setSelected(ficha.getInterrogSintomSNSPQ().isInsonia());
        checkSoluco.setSelected(ficha.getInterrogSintomABD().isSoluco());
        checkSudorese.setSelected(ficha.getInterrogSintomGeral().isSudorese());
        checkSonolencia.setSelected(ficha.getInterrogSintomSNSPQ().isSonolencia());
        checkRegurgitacao.setSelected(ficha.getInterrogSintomABD().isRegurgitacao());
        checkRetencao.setSelected(ficha.getInterrogSintomAGU().isRetencao());
        checkRigidezPosRepouso.setSelected(ficha.getInterrogSintomSME().isRigidezPosRep());
        checkRinorreia.setSelected(ficha.getInterrogSintomCabecaPescoco().isRinorreia());
        checkRouquidao.setSelected(ficha.getInterrogSintomCabecaPescoco().isRouquidao());
        checkMauCheiro.setSelected(ficha.getInterrogSintomAGU().isMauCheiro());
        checkMotricidadeSensibilidade.setSelected(!ficha.getInterrogSintomSNSPQ().getMotricSensib().equals(""));
        checkMelena.setSelected(ficha.getInterrogSintomABD().isMelena());
        checkNocturia.setSelected(ficha.getInterrogSintomAGU().isNocturia());
        checkNauseas.setSelected(ficha.getInterrogSintomABD().isNauseas());
        checkObstrucaoNasal.setSelected(ficha.getInterrogSintomCabecaPescoco().isObsNasal());
        checkOliguria.setSelected(ficha.getInterrogSintomAGU().isOliguria());
        checkOutrosAReACV.setSelected(!ficha.getInterrogSintomARACV().getOutros().equals(""));
        checkOutrosGeral.setSelected(!ficha.getInterrogSintomGeral().getOutros().equals(""));
        checkOutrosAGU.setSelected(!ficha.getInterrogSintomAGU().getOutros().equals(""));
        checkTonturas.setSelected(ficha.getInterrogSintomGeral().isTontura());
        checkTosse.setSelected(ficha.getInterrogSintomARACV().isTosse());
        checkPalpitacoes.setSelected(ficha.getInterrogSintomARACV().isPalpitacoes());
        checkPerdaPeso.setSelected(ficha.getInterrogSintomGeral().getPesoPerdido() != 0);
        checkPirose.setSelected(ficha.getInterrogSintomABD().isPirose());
        checkPoliuria.setSelected(ficha.getInterrogSintomAGU().isPoliuria());
        checkPrurido.setSelected(ficha.getInterrogSintomGeral().isPrurido());
        checkVomitos.setSelected(ficha.getInterrogSintomABD().isVomitos());
    }
    
    public boolean isEditable() {
        return editable;
    }

    public void setEditable(boolean editable) {
        this.editable = editable;
    }

    public FichaAdmissaoMedica getFicha() {
        return ficha;
    }

    public void setFicha(FichaAdmissaoMedica ficha) {
        this.ficha = ficha;
    }
    
    
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(TelaFichaAdmisMedic2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(TelaFichaAdmisMedic2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(TelaFichaAdmisMedic2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(TelaFichaAdmisMedic2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new TelaFichaAdmisMedic2().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton botaoAnterior;
    private javax.swing.JButton botaoCancelar;
    private javax.swing.JButton botaoProximo;
    private javax.swing.JButton botaoSalvar;
    private javax.swing.JTextField campoAudicao;
    private javax.swing.JTextField campoDorABD;
    private javax.swing.JTextField campoDorAReACV;
    private javax.swing.JTextField campoDorSME;
    private javax.swing.JTextField campoEdemaAReACV;
    private javax.swing.JTextField campoMotricidadeSensibilidade;
    private javax.swing.JTextField campoOutrosAGU;
    private javax.swing.JTextField campoOutrosAReACV;
    private javax.swing.JTextField campoOutrosGeral;
    private javax.swing.JTextField campoPele;
    private javax.swing.JTextField campoPerdaPeso;
    private javax.swing.JTextField campoPerdaTempo;
    private javax.swing.JTextField campoVisao;
    private javax.swing.JCheckBox checkAdenomegalias;
    private javax.swing.JCheckBox checkAlopecia;
    private javax.swing.JCheckBox checkAmnesia;
    private javax.swing.JCheckBox checkAnorexia;
    private javax.swing.JCheckBox checkArtralgia;
    private javax.swing.JCheckBox checkAstenia;
    private javax.swing.JCheckBox checkAtrofia;
    private javax.swing.JCheckBox checkAumentoVolume;
    private javax.swing.JCheckBox checkBocio;
    private javax.swing.JCheckBox checkCalafrios;
    private javax.swing.JCheckBox checkCalor;
    private javax.swing.JCheckBox checkCefaleia;
    private javax.swing.JCheckBox checkCianose;
    private javax.swing.JCheckBox checkConstipacao;
    private javax.swing.JCheckBox checkConvulsoes;
    private javax.swing.JCheckBox checkCorrimento;
    private javax.swing.JCheckBox checkCrepitacao;
    private javax.swing.JCheckBox checkDeformidades;
    private javax.swing.JCheckBox checkDesmaio;
    private javax.swing.JCheckBox checkDiarreia;
    private javax.swing.JCheckBox checkDisfagia;
    private javax.swing.JCheckBox checkDispepsia;
    private javax.swing.JCheckBox checkDispneia;
    private javax.swing.JCheckBox checkDisuria;
    private javax.swing.JCheckBox checkDorABD;
    private javax.swing.JCheckBox checkDorAReACV;
    private javax.swing.JCheckBox checkDorGarganta;
    private javax.swing.JCheckBox checkDorSME;
    private javax.swing.JCheckBox checkEdemaAReACV;
    private javax.swing.JCheckBox checkEdemaSME;
    private javax.swing.JCheckBox checkEnterorragia;
    private javax.swing.JCheckBox checkEpistaxe;
    private javax.swing.JCheckBox checkEspasmos;
    private javax.swing.JCheckBox checkEspirros;
    private javax.swing.JCheckBox checkExpectoracao;
    private javax.swing.JCheckBox checkFebre;
    private javax.swing.JCheckBox checkFraqueza;
    private javax.swing.JCheckBox checkHematemese;
    private javax.swing.JCheckBox checkHematuria;
    private javax.swing.JCheckBox checkHemoptise;
    private javax.swing.JCheckBox checkHumor;
    private javax.swing.JCheckBox checkIctericia;
    private javax.swing.JCheckBox checkIncontinencia;
    private javax.swing.JCheckBox checkInsonia;
    private javax.swing.JCheckBox checkLibido;
    private javax.swing.JCheckBox checkMauCheiro;
    private javax.swing.JCheckBox checkMelena;
    private javax.swing.JCheckBox checkMotricidadeSensibilidade;
    private javax.swing.JCheckBox checkNauseas;
    private javax.swing.JCheckBox checkNocturia;
    private javax.swing.JCheckBox checkObstrucaoNasal;
    private javax.swing.JCheckBox checkOliguria;
    private javax.swing.JCheckBox checkOutrosAGU;
    private javax.swing.JCheckBox checkOutrosAReACV;
    private javax.swing.JCheckBox checkOutrosGeral;
    private javax.swing.JCheckBox checkPalpitacoes;
    private javax.swing.JCheckBox checkPerdaPeso;
    private javax.swing.JCheckBox checkPirose;
    private javax.swing.JCheckBox checkPoliuria;
    private javax.swing.JCheckBox checkPrurido;
    private javax.swing.JCheckBox checkRegurgitacao;
    private javax.swing.JCheckBox checkRetencao;
    private javax.swing.JCheckBox checkRigidezPosRepouso;
    private javax.swing.JCheckBox checkRinorreia;
    private javax.swing.JCheckBox checkRouquidao;
    private javax.swing.JCheckBox checkRubor;
    private javax.swing.JCheckBox checkSoluco;
    private javax.swing.JCheckBox checkSonolencia;
    private javax.swing.JCheckBox checkSudorese;
    private javax.swing.JCheckBox checkTonturas;
    private javax.swing.JCheckBox checkTosse;
    private javax.swing.JCheckBox checkVomitos;
    private javax.swing.JCheckBox jCheckBox34;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JSeparator jSeparator2;
    // End of variables declaration//GEN-END:variables
    private static TelaFichaAdmisMedic2 uniqueInstance;
    private boolean editable;
    private FichaAdmissaoMedica ficha = null;
}
